package com.aaa.day04.api;

import java.util.Calendar;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2024/11/14 15:55
 * @description：
 * @modified By：
 * @version:
 */
public class MyCalendar {
    public static void main(String[] args) {
        //获取今天是今年的第几天
        Calendar calendar = Calendar.getInstance();
        int i = calendar.get(Calendar.DAY_OF_YEAR);
        System.out.println(i);
        int week = calendar.get(Calendar.WEEK_OF_YEAR);
        System.out.println("当前是本年度第"+week+"周");
    }
}
